package com.groupbuying.orderproducer.service;

import com.groupbuying.orderproducer.domain.CommodityOrderMainDO;
import com.groupbuying.orderproducer.utils.apiresult.ApiResult;

import java.util.List;
import java.util.Map;

/**
 * 商品主订单表
 * 
 * @author vincentxin
 * @email vincentxin@aliyun.com
 * @date 2019-09-20 15:12:15
 * @des
 */

public interface CommodityOrderMainService {
	
	CommodityOrderMainDO get(String id);
	
	List<CommodityOrderMainDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(CommodityOrderMainDO commodityOrderMain);
	
	int update(CommodityOrderMainDO commodityOrderMain);
	
	int remove(String id);
	
	int batchRemove(String[] ids);

    ApiResult createOrder(Map<String, Object> params);
}
